package com.xucy.springboot.designmodel.structural.composite.composite1;

/**
 * @Author xucy
 * @Date 2019-11-04 17:32
 * @Description
 **/

public abstract class CourseComponent {


    public void add(CourseComponent courseComponent){
        throw new RuntimeException("不可添加");
    };

    public void getPrice(){
        throw new RuntimeException("不可获得价格");
    };

    public abstract String getName();

    public abstract void print();
}
